import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:xm_app/model/HomeData.dart';
import 'package:xm_app/page/main/home/tabs/RecommendTab.dart';

class HomeController extends GetxController {
  var tabs = [
    Tab(text: '推荐'),
    Tab(text: '技术'),
  ];

  var tabBarView = [
    RecommendTab(),
    Container(
      child: Text("2222"),
    )
  ];
  final selectedIndex = 0.obs;

  ///页面控制器
  PageController pageController = PageController();

  onTap(index) {
    selectedIndex.value = index;
  }
}
